package W1;

public class Exflower {

	public static void main(String[] args) {
		int sum=0;
		for(int i=100;i<=999;i++) {
			if(((i/100) *(i/100) *(i/100)) +( (i/10%10) *(i/10%10) *(i/10%10)) +( (i%10) * (i%10) * (i%10)) == i) 
			{System.out.println(i);}
			
			
			
		}
	
	
	
	
	
	
	
	
	
	}

}
